<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:param name="login-error" />
	<xsl:param name="login" select="''" />
	<xsl:param name="password" select="''" />

	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
	<xsl:template match="//page">
		<html>
			<head>
				<title>Аутентификация</title>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
				<style>
				<![CDATA[
					input {
						position: absolute;
						left: 200px;
						width: 200px;
						border: 1px solid gray;
					}
					.field {
						margin-bottom: 0.5em;
					}
				]]>
				</style>
			</head>
			<body>
				<xsl:if test="$login-error">
					<div style="border: 2px solid red; width: 400px;">
						<xsl:value-of select="$login-error" />
					</div>
				</xsl:if>
				<form action="/user/login/check" enctype="multipart/form-data" method="POST">
					<div class="field">Логин: <input name="login" type="test" value="{$login}" /></div>
					<div class="field">Пароль: <input name="password" type="password" /></div>
    				<input type="submit" value="Войти!" />

				</form>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>